Skip to content

Simplify use statements for base64 in examples - #23

Open
musicinmybrain wants to merge 1 commit into
rust-netlink:mainfrom
musicinmybrain:base64-prelude
Open

Simplify use statements for base64 in examples#23
musicinmybrain wants to merge 1 commit into
rust-netlink:mainfrom
musicinmybrain:base64-prelude

Conversation

@musicinmybrain

Copy link
Copy Markdown
Contributor

Inspired by, but not identical to, Gemini’s suggestion in #22.

I agree that using base64::prelude simplifies these examples and improves readability. While the wildcard use base64::prelude::* statement suggested by Gemini wouldn’t pollute the namespace too badly (base64::prelude is small), I chose to prefer the more explicit style demonstrated in the upstream documentation for the prelude.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies base64 encoding and decoding in the WireGuard examples (get_wireguard_info.rs and set_wireguard.rs) by importing BASE64_STANDARD and Engine from base64::prelude and replacing verbose base64::engine::general_purpose::STANDARD calls. There are no review comments, so no additional feedback is provided.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant